<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p></p>
    <h1></h1>
    <script>
        function fun(){
            var data=new Date();
            var year=data.getFullYear();
            var month=data.getMonth()+1;
            var date=data.getDate();
            var hours=data.getHours();
            var fen=data.getUTCMinutes()
            var seconds=data.getSeconds();
            console.log(year+":"+month+":"+date+":"+hours+":"+fen+":"+seconds)
            setTimeout(fun,1000)
        }
        fun()
    </script>
</body>
</html>